package com.group.elmboot.service;

import com.baomidou.mybatisplus.service.IService;
import com.group.elmboot.po.Transition;
import com.group.elmboot.po.Wallet;

import java.util.List;

public interface WalletService extends IService<Wallet>{

	int createWallet(String userId) throws Exception;

	int payByWallet(int orderId,String redPacket) throws Exception;

	int confirmReceipt(int orderId) throws Exception;

	int draw(String userId, String amount) throws Exception;

	int recharge(String userId, String amount) throws Exception;

	int upgradeVIPWallet(String userId,int VIPmonths,int third_partyPayment) throws Exception;

    List<Transition> listTransitionById(String userId);
}
